#ifndef _CUDATEST
#define _CUDATEST


#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <cutil.h>
#include <fstream>
#include "vertex.h"
#include "tree_helpers.h"



using namespace std;

const int VPW=2; /// vertices per wall
const int IPW=6;/// indices per wall
const int VPL=1;/// vertices per leaf
const int IPL=1;/// indices per leaf

int generateTree(branch * b, int s, int w, float r,  SimpleVertex* vertices, DWORD * indices , ofstream &out);
int generateLeafs(branch * b, int s, int n, float size,  SimpleVertex* vertices, DWORD * indices , ofstream &out);



#endif
